<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>渐变图</title>

<body>
    <div></div>
    <style>
        div{
            border: 1px red solid;
            width: 200px;
            height: 200px;
            background-image: linear-gradient(180deg,aqua,green);
        }
        .color1{
            background-image: linear-gradient(90deg,yellow,orange,25%,purple);
        }
        .color2{
            background-image:linear-gradient(54deg,red,orange,yellow,green,blue 50%) ;
        }
        .color3{
            background-image:radial-gradient(circle,yellow,green) ;
        }
        .color4{
            background-image:radial-gradient(200px 80px,aqur,green) ;
        }
        .color5{
            background-image:repeating-linear-gradient(to bottom,white, silver 30px); ;
        }
    </style>
    </head>
<body>
    <div class="color1"></div>
    <div class="color2"></div>
    <div class="color3"></div>
    <div class="color4"></div>
    <div class="color5"></div>
</body>
</html>